﻿package 三元运算符练习;
//三元运算符练习
public class Main {
	
	public static void test01(int a,int b) {
		int max = a > b ? a : b;
		System.out.println(max);
	}
	
	public static void test02(int a,int b,int c) {
		int max = a > b ? a : b;
		max = max > c ? max : c;
		System.out.println(max);
	}
	
	public static void main(String[] args) {
		test01(5,10);
		test02(5,10,20);
	}

}
